package com.study.experiment08.clazz;

import java.util.List;
import java.util.Map;

public class Student {
    private int id;
    private String name;
    private Map<Integer, Course> courses1;
    private List<Course> courses2;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Map<Integer, Course> getCourses1() {
        return courses1;
    }

    public void setCourses1(Map<Integer, Course> courses1) {
        this.courses1 = courses1;
    }

    public List<Course> getCourses2() {
        return courses2;
    }

    public void setCourses2(List<Course> courses2) {
        this.courses2 = courses2;
    }

    @Override
    public String toString() {
        return "[" + id + ", " + name + "," + courses1 + "]";
    }

    public String toString2() {
        return "[" + id + ", " + name + "," + courses2 + "]";
    }
}

